<template>
  <el-dialog title="详情" :visible.sync="visible" @close="cancellation" destroy-on-close>
    <el-form :model="content" label-width="150px" inline label-position="left">
      <el-form-item prop="id" label="ID">
        <div class="userCk">
          {{content.id}}
        </div>
      </el-form-item>
      <el-form-item prop="orderId" label="订单号">
        <div class="userCk">
          {{content.orderId}}
        </div>
      </el-form-item>
      <el-form-item prop="titleType" label="抬头类型">
        <div class="userCk">
          {{content.titleType?content.titleType:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="invoiceTitle" label="发票抬头">
        <div class="userCk">
          {{content.invoiceTitle?content.invoiceTitle:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="taxesNo" label="纳税人识别号">
        <div class="userCk">
          {{content.taxesNo?content.taxesNo:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="bankName" label="开户银行">
        <div class="userCk">
          {{content.bankName?content.bankName:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="bankNo" label="银行账号">
        <div class="userCk">
          {{content.bankNo?content.bankNo:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="registerAddress" label="注册地址">
        <div class="userCk">
          {{content.registerAddress?content.registerAddress:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="registerPhone" label="注册电话">
        <div class="userCk">
          {{content.registerPhone?content.registerPhone:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="userEmail" label="邮箱号码">
        <div class="userCk">
          {{content.userEmail?content.userEmail:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="userPhone" label="手机号码">
        <div class="userCk">
          {{content.userPhone?content.userPhone:'暂无'}}
        </div>
      </el-form-item>
      <el-form-item prop="createDate" label="创建时间">
        <div class="userCk">
          {{content.createDate}}
        </div>
      </el-form-item>
    </el-form>
    <template slot="footer">
      <el-button @click="$emit('update:visible', false)">取消</el-button>
    </template>
  </el-dialog>
</template>
<script>
import {formatNumber, getDictLabel} from "@/utils";

export default {
  name: 'ComInvoiceList',
  data() {
    return {}
  },
  props: {
    content:Object,
    visible:Boolean
  },
  methods: {
    formatNumber,
    getDictLabel,
    //取消
    cancellation(){
      this.$emit('update:visible', false)
      this.$emit('cancellation')
    },
  }
}
</script>
<style>
  .userCk{
    width: 260px;
    font-weight: 700;
  }
</style>
